package com.brucekong.slm.service.console;

import com.brucekong.slm.mapper.console.PrograssMapper;
import com.brucekong.slm.model.console.PrograssDomain;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PrograssService {

    @Resource
    private PrograssMapper prograssMapper;

    public PageInfo<PrograssDomain> getPrograss(int page, int limit) {
        PageHelper.startPage(page, limit);
        List<PrograssDomain> prograssDomainList = prograssMapper.getPrograss(page, limit);
        return new PageInfo<>(prograssDomainList);
    }
}